package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.common.dto.PageDTO;
import com.leyou.item.dto.SkuDTO;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.dto.SpuDTO;
import com.leyou.item.dto.SpuDetailDTO;
import com.leyou.item.entity.Spu;

import java.util.List;
import java.util.Map;

public interface SpuService extends IService<Spu> {
    PageDTO<SpuDTO> pageQuery(Integer page, Integer rows, Long cId, Long bid, Boolean saleable, Long id);

    void addGoods(SpuDTO spuDTO);

    void modifySaleable(Long id, Boolean saleable);

    SpuDTO querySpuById(Long spuId);

    void updateGoods(SpuDTO spuDTO);

    List<SkuDTO> querySkuByIds(List<Long> ids);

    List<SkuDTO> querySkuBySpuId(Long spuId);

    SpuDetailDTO querySpuDetailById(Long spuId);

    List<SpecParamDTO> querySpecValues(Long id, Boolean searching);
}
